<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="UTF-8">
		<title>中奖统计</title>
		<link href="css/common.css" rel="stylesheet" type="text/css" />
		<link href="css/normolize.css" rel="stylesheet" type="text/css" />
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<!--[if IE 9]> <link href="css/ieHack9.css" rel="stylesheet" type="text/css" /> <![endif]-->
		<!--[if IE 8]> <link href="css/ieHack.css" rel="stylesheet" type="text/css" /><link href="css/ieHack8.css" rel="stylesheet" type="text/css" /> <![endif]-->
		<!--[if lte IE 7]> <link href="css/ieHack.css" rel="stylesheet" type="text/css" /> <![endif]-->
	</head>

	<body>
		<script src="js/tpl/header.js" type="text/javascript" charset="utf-8"></script>
		<div class="page-wrapper productlist minwidth border" id="page-wrapper">
			<div class="line"></div>
			<script src="js/tpl/menu.js" type="text/javascript" charset="utf-8"></script>
			<div class="vertival-line"></div>
			<div class="page-content">
				<div class="tablist">
					<ul>
						<li class="tabItem ">
							<a href="dataCount.html#dataCount">产品统计</a>
						</li>
						<li class="tabItem">
							<a href="qrCount.html#dataCount">扫码统计</a>
						</li>
						<li class="tabItem active">
							<a href="prizeCount.html#dataCount">中奖统计</a>
						</li>
					</ul>
				</div>

				<div class="page-container">
					<div class="page-form">
						<div class="form">
							<form class="multiinline-form" id="searchForm">
								<section>
									<div>
										<label>产品名称：</label>
										<input type="text" placeholder="请输入产品名称" style="width: 110px;" />
									</div>
									<div>
										<label>铺货单号：</label>
										<input type="text" placeholder="请输入铺货单号" style="width: 129px;" />
									</div>
									<div>
										<label>中奖用户：</label>
										<input type="text" placeholder="请输入用户名称" style="width: 129px;" />
									</div>
								</section>

								<br>
								<div class="clearfix"></div>

								<section style="margin-top:14px;">
									<div>
										<label style="line-height: 26px;">抽奖类型：</label>
										<div class="overlay">
											<!--这个是用来存放选中的select的值的-->
											<input type="hidden" value="" class="form-select-value" />
											<div class="dropdown">
												<button class="dropdown-toggle form-dropdown" type="button">
				                                <span class="value" data-default='全部'>全部</span>
				                                <span class="caret"></span>
				                            </button>
												<ul class="none">
													<li data-value='001'>1</li>
													<li data-value='002'>2</li>
													<li data-value='003'>3</li>
													<li data-value='004'>4</li>
												</ul>
											</div>
										</div>
									</div>
									<div>
										<label>中奖时间：</label>
										<input type="text" class="Wdate" onfocus="WdatePicker()" />--<input type="text" class="Wdate" onfocus="WdatePicker()" />
									</div>
									<input type="hidden" value="" id="pageNo" name="pageNo" />
									<input type="button" value="搜索" class="search-input-button" />
									<input type="button" value="重置" class="search-input-button bgblue" onclick="resetForm()" />
									<input type="button" value="下载中奖结果" class="search-input-button bgblue" />
								</section>

							</form>
						</div>
					</div>
					<div class="table">
						<div class="tablelist">
							<table>
								<thead>
									<tr>
										<th>二维码信息</th>
										<th>用户</th>
										<th>活动信息</th>
										<th>中奖信息</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody id="itemContainer">
									<tr>
										<td>
											<div class="text-left" style="width:200px;margin:auto">
												<p class="text-ellipsis">ID：NWwDzzqJsifL</p>
												<p class="text-ellipsis tabletop">产品：五粮液</p>
												<p class="text-ellipsis tabletop">铺货：S20161109264685</p>
											</div>
										</td>
										<td>
											<p>潘哒/18681699126</p>
										</td>
										<td>
											<div class="text-left" style="width:150px;margin:auto">
											<p class="tabletop  text-ellipsis">类型：积分抽奖</p>
											<p class="tabletop  text-ellipsis">活动：五粮液大转盘</p>
											</div>
										</td>
										<td>
											<div class="text-left" style="width:200px;margin:auto">
											<p class="">奖品：红包1.0元</p>
											<p class="tabletop  text-ellipsis">时间：2016年8月16日21:52:40</p>
											<p class="tabletop  text-ellipsis">地区：四川省绵阳市</p>
											</div>
										</td>
										<td>
											<p>已发放</p>
										</td>
									</tr>

									<tr>
										<td>
											<div class="text-left" style="width:200px;margin:auto">
												<p class="text-ellipsis">ID：NWwDzzqJsifL</p>
												<p class="text-ellipsis tabletop">产品：五粮液</p>
												<p class="text-ellipsis tabletop">铺货：S20161109264685</p>
											</div>
										</td>
										<td>
											<p>潘哒/18681699126</p>
										</td>
										<td>
											<div class="text-left" style="width:150px;margin:auto">
											<p class="tabletop  text-ellipsis">类型：积分抽奖</p>
											<p class="tabletop  text-ellipsis">活动：五粮液大转盘</p>
											</div>
										</td>
										<td>
											<div class="text-left" style="width:200px;margin:auto">
											<p class="">奖品：红包1.0元</p>
											<p class="tabletop  text-ellipsis">时间：2016年8月16日21:52:40</p>
											<p class="tabletop  text-ellipsis">地区：四川省绵阳市</p>
											</div>
										</td>
										<td>
											<span onclick="showdetail()" class="hover" data-id='1'><i class="icon icon_detail"></i>详情 </span> 
											<span onclick="sendPrize()"  class="hover"  data-id='1' style="margin-left:10px;"><i class="icon icon_gift"></i>派奖</span> 
										</td>
									</tr>
									
									<tr>
										<td>
											<div class="text-left" style="width:200px;margin:auto">
												<p class="text-ellipsis">ID：NWwDzzqJsifL</p>
												<p class="text-ellipsis tabletop">产品：五粮液</p>
												<p class="text-ellipsis tabletop">铺货：S20161109264685</p>
											</div>
										</td>
										<td>
											<p>潘哒/18681699126</p>
										</td>
										<td>
											<div class="text-left" style="width:150px;margin:auto">
											<p class="tabletop  text-ellipsis">类型：积分抽奖</p>
											<p class="tabletop  text-ellipsis">活动：五粮液大转盘</p>
											</div>
										</td>
										<td>
											<div class="text-left" style="width:200px;margin:auto">
											<p class="">奖品：红包1.0元</p>
											<p class="tabletop  text-ellipsis">时间：2016年8月16日21:52:40</p>
											<p class="tabletop  text-ellipsis">地区：四川省绵阳市</p>
											</div>
										</td>
										<td>
											<span onclick="showdetail()" data-id='2'>详情 </span> 
										</td>
									</tr>
								</tbody>
							</table>
						</div>

						<div class="pagelist fr">
							<div class=" pagedesc fl">当前<span class="currentPage"></span>/<span class="totalpage"></span>，每页<span class="perpage"></span>条，共<span class="totalnumber"></span>条</div>
							<div class="pagination inline-block fl"></div>
							<div class="inline-block fl">
								到第<input type="text" value="" class="gotopage" />页 <input type="button" value="跳转" class="search-input-button border-radius bgblue gotopage_button"></span>
							</div>
						</div>

					</div>

				</div>

			</div>
		</div>

		<div class="footer">
			<div class="footercontainer">
				<ul>
					<li>
						<a href="#">关于我们</a>
					</li>
					<li>
						<a href="#">服务与支持</a>
					</li>
					<li>
						<a href="#">常见问题</a>
					</li>
					<li>
						<a href="#">人才招聘</a>
					</li>
					<li>
						<a href="#">加盟合作</a>
					</li>
				</ul>

				<div style="margin-top:13px;">版权所有@ 2015 - 2016 深圳在乎传媒科技有限公司 粤ICP备15107022-1号</div>
			</div>

		</div>

	</body>

	<script src="js/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/page/jPages.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/page/pageFun.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/layer/layer.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/wdatePicker/WdatePicker.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/scroll/jquery.slimscroll.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/js.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/layFun.js" type="text/javascript" charset="utf-8"></script>

	<script>
		$(function() {
			commonObj.checkinit();
			var pageObj = new pageFun();
			var currentpage = 50,
				perPage = 10,
				totalNumber = 940;
			pageObj.pageNoObj = $('#pageNo');
			pageObj.submitFun = function() {
					$('#searchForm').submit();
				}
				/*参数每页多少个,当前页,总个数,容器的ID*/
			pageObj.init(perPage, currentpage, totalNumber, 'itemContainer');
 
		})
		//详情
		function showdetail(){
			var html='<div style="margin-top:20px;margin-left:20px;"><p>中奖详情：潘哒，18681699126，深圳市南山区科园路A8音乐大厦</p><p style="margin-top:20px;">派奖信息：顺丰速运，755153816145，随便备注了一下。</p></div>';
			layObj.content(540, 140, '中奖详情', html);
		}
		//派奖
		function sendPrize(){
			layObj.open('sendPrize.html', 301,380, '派奖', callback);
		}
		
		function callback(layero, index) {
			var body = layer.getChildFrame('body', index);
			var iframeWin = window[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象，执行iframe页的方法：iframeWin.method();
 
			body.find('#subButton').on('click', function() {
				layer.close(index);
			});
			body.find("#backButton").on('click', function() {
				layer.close(index);
			});
		}
	</script>

</html>